<form class="form-horizontal" id="add_attribute_on_group" method="post" action="<?=base_url('group_attributes/submit_add_attribute_on_group')?>" name="add_attribute_on_group">

<input type="hidden" name="group_id" value="<?=$group_id?>">

    <fieldset>

        <div class="group">

            <span class="group-title">SELECT ATTRIBUTES</span>             

            <div class="control-group">

                <label class="control-label smaller">Attribute:</label>

                <div class="controls docs-input-sizes">

                    <select class="span3" name="attribute_id" id="attribute_id" tabindex="1">

                        <option value="0">--Please Select</option>
                        
                        <?foreach ($group_attributes as $group_attribute) :?>

                            <option value="<?=$group_attribute['attribute_ID']?>"><?=$this->translate->getArray($group_attribute['attribute_name'],TRUE)?></option>

                            <?endforeach;?>

                    </select>

                    <a class="btn btn-mini" title="Add Attribute" id="opne_new_attribute" data-holder="<?=$group_id?>"><i class="icon-plus"></i></a>

                </div>

                <br />

                <?=info('From drop down list, select an attribute you want to add to the group,  and click on Add to confirm. To enter a new attribute, click on the plus icon next to the search box.')?>

            </div>

        </div>

        <div class="status_info"></div> 

    </fieldset>

</form>